package com.gitee.cashzhang27.test.cloud.oauth.auth.server.redis.feign;

import com.gitee.cashzhang27.test.cloud.oauth.auth.server.redis.entity.UserDetails;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author Cash Zhang
 * @version v1.0
 * @since 2019/02/08 20:49
 */
@FeignClient(value = "resource-server")
public interface UserFeign {

  @GetMapping("user/getUser")
  UserDetails getUser(@RequestParam("username") String username);
}
